<script type="text/javascript" src="/FusionCharts/ZoomLine/jquery.min.js"></script>
<script type="text/javascript" src="/FusionCharts/ZoomLine/FusionCharts.js"></script>


<div class="pad-10" >
    
    <div class="navigate">
		<h1>排名分析列表</h1>
        <span class="ui-button ui-button-morange fr">
                <a class="ui-button-text fr" href="/index.php/Admin/JdRank/add">排名分析添加</a>
        </span>
  	</div>



<if condition="$ids_array">
    <div>

        <script type="text/javascript" src="/index.php/Admin/JdRank/rank_xml_data?ids={$ids}" ></script>


        <div id="chartdiv" align="center">Chart will load here</div>
        <script type="text/javascript">

            var chart = new FusionCharts("/FusionCharts/ZoomLine/ZoomLine.swf", "ChartId", "800", "550", "0", "0");
            chart.setXMLData( dataString );
            chart.render("chartdiv");
        </script>

    </div>
</if>


    <div class="tc">
            <input type="button" id="btnView" value="查看" />
    </div>


    <div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th></th>
                <th>商品编号</th>
                <th>商品名称</th>
                <th>店铺名称</th>
                <th>分类URL</th>
                <th>当前排名</th>
                <th>最后跟踪时间</th>
                <th>管理员</th>
                <th>添加时间</th>
                <th>操作</th>
            </tr>
        </thead>
    	<tbody>
        <volist name="ranks" id="r" >
        <tr>
            <td align="center">
                <input type="checkbox" name="ranks" id="rank_{$r.id}" value="{$r.id}" <if condition="$r['checked']"> checked</if> />
            </td>
            <td align="center">
                <a href="http://item.jd.com/{$r.item_id}.html" target="_blank">
                    {$r.item_id}
                </a>
            </td>
            <td align="left">
                <a href="http://item.jd.com/{$r.item_id}.html" target="_blank">
                    {$r.goods_name}
                </a>
            </td>
            <td align="center">{$r.shop_name}</td>
            <td align="left">
	            <a href="{$r.url}" target="_blank">
	            	{$r.url}
	            </a>
            </td>      
            <td align="center">
                {$r.rank}
            </td>
            <td align="center">
                {$r.dateline_fmt}
            </td>
            <td align="center">
                {$r.real_name}
            </td>
            <td align="center">
                {$r.created}
            </td>

            <td align="center">
                <input type="button" value="删除" onclick="javascript:jd_rank_del({$r.id});" />
            </td>
        </tr>
        </volist>
    	</tbody>
    </table>

    </div>
    
</div>

<script type="text/javascript" src="/Js/adm/jdrank/index.js"></script>